'use strict';

module.exports = app => {
  class HomeController extends app.Controller {
    * index(ctx) {
      yield ctx.render('h5/huanlian/index',{
          user:this.ctx.session.user,
          jssdk:this.ctx.session.jssdk,
          wechat:this.ctx.session.wechat,
      })
    }
      * select(ctx) {
          yield ctx.render('h5/huanlian/select',{
              user:this.ctx.session.user,
              jssdk:this.ctx.session.jssdk,
              wechat:this.ctx.session.wechat,
          })
      }
      * detail(ctx) {
          yield ctx.render('h5/huanlian/detail',{
              user:this.ctx.session.user,
              jssdk:this.ctx.session.jssdk,
              wechat:this.ctx.session.wechat,
          })
      }
      * config() {
          this.ctx.body = 'SQ8N31sIi1XQjQGe';
      }
  }
  return HomeController;
};
